package edu.uis.csc478.spring09.threeoxen.persistence.user.impl;

import edu.uis.csc478.spring09.threeoxen.persistence.user.User;

/**
 * User: Chris Logan
 * Date: Apr 13, 2009
 * Time: 7:03:33 AM
 */
public class UserImpl implements User {

    private String username;
    private String password;
    private String type;
    private String email;

    UserImpl() {
        
    }

    @Override
    public String getUserName() {
        return this.username;
    }

    @Override
    public void setUserName(String username) {
        this.username = username;
    }

    @Override
    public String getPassword() {
        return this.password;
    }

    @Override
    public void setPassword(String password) {
        this.password = password;
    }

    @Override
    public String getType() {
        return this.type;
    }

    @Override
    public void setType(String type) {
        this.type = type;
    }

    @Override
    public String getEmailAddress() {
        return email;
    }

    @Override
    public void setEmailAddress(String email) {
        this.email = email;
    }

    @Override
    public String toString() {
        StringBuffer buffer = new StringBuffer();
        buffer.append("Username:").append(this.username);
        buffer.append(", Password:").append(this.password);
        buffer.append(", Email:").append(this.email);
        buffer.append(", Type:").append(this.type);
        return buffer.toString();
    }
}
